// import http from '../utils/http'
//手术间关联工作站
import request from '@/utils/request'

export function hasAllOR(params) {
    return request({
      url: '/TBaseTask/hasAll',
      method: 'get',
      params
    })
}
export function List(params) {
    return request({
      url: '/TBaseTask/hasAllToPage',
      method: 'get',
      params
    })
}
export function Add(data) {
    return request({
      url: '/TBaseTask/add',
      method: 'post',
      data
    })
}
export function Update(data) {
    return request({
      url: '/TBaseTask/update',
      method: 'post',
      data
    })
}
export function Delete(data) {
    return request({
      url: '/TBaseTask/delete',
      method: 'post',
      data
    })
}
export function hasAllDepId(params) {
  return request({
    url: '/TBaseTask/hasAllByDepId',
    method: 'get',
    params
  })
}

export function hasAllToPage(params) {
  return request({
    url: '/TBaseOperationSchedule/hasAllToPage',
    method: 'get',
    params
  })
}
export function countToTypeTD(params) {
  return request({
    url: '/TBaseTask/countToTypeTD',
    method: 'get',
    params
  })
}
export function hasAllToMSG(params) {
  return request({
    url: '/TBaseTask/hasAllToMSG',
    method: 'get',
    params
  })
}
export function hasAllToMSGPage(params) {
  return request({
    url: '/TBaseTask/hasAllToMSGToPage',
    method: 'get',
    params
  })
}


export function taskAccept(data) {
  return request({
    url: '/TBaseTask/updateTask',
    method: 'post',
    data
  })
}

export function updateTaskStatus(params) {
  return request({
    url: '/TBaseTask/updateTaskStatus',
    method: 'get',
    params
  })
}

export function queryByExecutor(params) {
  return request({
    url: '/TBaseTask/queryByExecutor',
    method: 'get',
    params
  })
}

//今天手术数量
export function queryTotalByTask(params) {
  return request({
    url: 'TBaseOperationSchedule/queryTotalByTask',
    method: 'get',
    params
  })
}
//进出手术间
export function queryTotalToType(params) {
  return request({
    url: '/TBaseTask/queryTotalToType',
    method: 'get',
    params
  })
}
